<!DOCTYPE html>
<html lang="en">
<head>
  <meta  http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width,initia-scale=1.shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
  <title>新闻展示</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet">
  <link href="/static/css/dashboard.css" rel="stylesheet">
  <style type="text/css">
    @-webkit-keyframes chartjs-render-animation {
      from {
        opacity: 0.99
      }
      to {
        opacity: 1
      }
    }

    @keyframes chartjs-render-animation {
      from {
        opacity: 0.99
      }
      to {
        opacity: 1
      }
    }

    .chartjs-render-monitor {
      -webkit-animation: chartjs-render-animation 0.001s;
      animation: chartjs-render-animation 0.001s;
    }
  </style>
</head>
<body>
<div th:replace="~{topleft::topnav}"></div>
<div class="container-fluid">
  <div class="row">
    <!--左菜单 -->
    <div th:replace="~{topleft::#sidebarMenu(lurl='leftuser')}"></div>
    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
      <div class="table-responsive">
        <table class="table table-sm table-hover table-bordered">
          <thead>
          <tr>
            <th>编号</th>
            <th>主题</th>
            <th>内容</th>
            <th>作者</th>
            <th>发布时间</th>
          </tr>
          </thead>
          <tbody>
          <tr th:each="hh:${late}">
            <td th:text="${hh.id}"></td>
            <td th:text="${hh.title}"></td>
            <td th:text="${hh.content}"></td>
            <td th:text="${hh.author}"></td>
            <td th:text="${hh.publishDate}"></td>
          </tr>
          </tbody>
        </table>


      </div>
    </main>
  </div>
</div>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="/js/feather.min.js"></script>
<script>
  feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" src="/js/Chart.min.js"></script>
<script>
  var ctx = document.getElementById("myChart");
  var myChart = new Chart(ctx, {
    type: 'line',
    data: {
      labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
      datasets: [{
        data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
        lineTension: 0,
        backgroundColor: 'transparent',
        borderColor: '#007bff',
        borderWidth: 4,
        pointBackgroundColor: '#007bff'
      }]
    },
    options: {
      scales: {
        yAxes: [{
          ticks: {
            beginAtZero: false
          }
        }]
      },
      legend: {
        display: false,
      }
    }
  });
</script>

</body>

</html>